package com.loong.data.controller.backend;

import com.loong.common.mvc.BaseBackendController;
import com.loong.common.rest.Result;
import com.loong.data.common.backend.param.GoodsSpecificationParam;
import com.loong.data.common.backend.param.PageParam;
import com.loong.data.handler.GoodsSpecificationHandler;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2020-12-5 14:17
 */
@RestController
@RequestMapping("manage/data/goodsSpecification")
public class GoodsSpecificationController extends BaseBackendController {

    @Resource
    private GoodsSpecificationHandler goodsSpecificationHandler;

    /**
     * 多条件分页查询店铺规格
     * @param param 多条件查询参数：店铺规格、分页封装的参数
     * @return 响应的结果
     */
    @PostMapping("findGoodsSpecificationList")
    public Result pageQueryShopModel(GoodsSpecificationParam param, PageParam pageParam){
        return handlerExecutor.execute(() -> goodsSpecificationHandler.pageQueryGoodsSpecificationModel(param,pageParam));
    }
}
